import fetch from '@/utils/fetch'

export function queryScheduleList(query) {
  return fetch({
    url: '/schedule/queryList',
    method: 'POST',
    params: query
  })
}

export function queryScheduleLogList(query) {
  return fetch({
    url: '/schedule/queryLogList',
    method: 'POST',
    params: query
  })
}

export function modifySchedule(form) {
  return fetch({
    url: '/schedule/modifySchedule',
    method: 'POST',
    params: form
  })
}

export function modifyStatusOrRun(page) {
  return fetch({
    url: '/schedule/modifyStatusOrRun',
    method: 'get',
    params: page
  })
}

export function deleteAll(page) {
  return fetch({
    url: '/schedule/delete',
    method: 'get',
    params: page
  })
}
